package com.douqu.game.auth.database.model;

import com.alibaba.fastjson.JSONObject;

public class TdInfoDetail {

    private String clientVersion;
    private String osversion;
    private String tdid;
    private String tdDeviceId;
    private int tdDeviceIdType;

    public String getClientVersion() {
        return clientVersion;
    }

    public void setClientVersion(String clientVersion) {
        this.clientVersion = clientVersion;
    }

    public String getOsversion() {
        return osversion;
    }

    public void setOsversion(String osversion) {
        this.osversion = osversion;
    }

    public String getTdid() {
        return tdid;
    }

    public void setTdid(String tdid) {
        this.tdid = tdid;
    }

    public String getTdDeviceId() {
        return tdDeviceId;
    }

    public void setTdDeviceId(String tdDeviceId) {
        this.tdDeviceId = tdDeviceId;
    }

    public int getTdDeviceIdType() {
        return tdDeviceIdType;
    }

    public void setTdDeviceIdType(int tdDeviceIdType) {
        this.tdDeviceIdType = tdDeviceIdType;
    }


    public void init(String json){
        JSONObject jsonObject = JSONObject.parseObject(json);
        clientVersion = jsonObject.getString("clientVersion");
        osversion = jsonObject.getString("osversion");
        tdid = jsonObject.getString("tdid");
        tdDeviceId = jsonObject.getString("tdDeviceId");
        tdDeviceIdType = jsonObject.getInteger("tdDeviceIdType");
    }
}
